﻿create table dbo.UserInRoles (
   UserRoleId           nvarchar(10)         collate Chinese_PRC_CI_AS not null,
   UserId               nvarchar(30)         collate Chinese_PRC_CI_AS not null,
   RoleId               nvarchar(10)         collate Chinese_PRC_CI_AS not null,
   constraint PK_UserRoles primary key (UserRoleId)
         on "PRIMARY"
)
on "PRIMARY"
go

execute sp_addextendedproperty 'MS_Description', 
   '用户角色编号',
   'user', 'dbo', 'table', 'UserInRoles', 'column', 'UserRoleId'
go

execute sp_addextendedproperty 'MS_Description', 
   '用户ID',
   'user', 'dbo', 'table', 'UserInRoles', 'column', 'UserId'
go

execute sp_addextendedproperty 'MS_Description', 
   '角色ID',
   'user', 'dbo', 'table', 'UserInRoles', 'column', 'RoleId'
go